projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9202bc2
)
cell renderer progress: Avoid warnings
author
Matthias Clasen
<mclasen@redhat.com>
Fri, 20 Nov 2015 04:04:38 +0000
(23:04 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Fri, 20 Nov 2015 05:13:20 +0000
(
00:13
-0500)
Use the right state when calling gtk_style_context_get_padding,
to avoid warnings.
gtk/gtkcellrendererprogress.c
patch
|
blob
|
history
diff --git
a/gtk/gtkcellrendererprogress.c
b/gtk/gtkcellrendererprogress.c
index 55e2d0c4a566058091a8f7c8b82951a4a5181b09..260ed2d8fec94a6ea48273c1e1b41ec63b6f1aef 100644
(file)
--- a/
gtk/gtkcellrendererprogress.c
+++ b/
gtk/gtkcellrendererprogress.c
@@
-577,7
+577,7
@@
gtk_cell_renderer_progress_render (GtkCellRenderer *cell,
gtk_render_background (context, cr, x, y, w, h);
gtk_render_frame (context, cr, x, y, w, h);
- gtk_style_context_get_padding (context,
GTK_STATE_FLAG_NORMAL
, &padding);
+ gtk_style_context_get_padding (context,
gtk_style_context_get_state (context)
, &padding);
x += padding.left;
y += padding.top;